import request from '@/config/request.js';

// 更新容器内物料
export const updateContainerAPI = (params) => request.post('/api/containerDetail/bindAndUnbindContainer', params)

// 获取容器详情
// export const getContainerInfoAPI = (params) => request.post('/api/containerDetail/getContainerInfo', params)

// 获取容器详情
export const getContainerInfoAPI = (params) => request.post(`/api/containerDetail/getContainerDetail/${params}`, params)

// 查询容器状态
export const checkContainerFullAPI = (params) => request.get(`/api/container/checkContainerFull/${params}`, params)

// 设置容器为满状态
export const setContainerStatusAPI = (params) => request.post(`/api/container/setContainerFull?containerCode=${params.containerCode}&isFull=${params.isFull}`, params)

// 物料查询(物料查询页面)
export const toQueryAPI = (params) => request.post(`/api/material/getMaterial/${params}`, params)